/**
 * @description 中间件: 定时器
 */

const schedule = require("node-schedule");

schedule.scheduleJob("0 */30 * * * *", async function () {
  console.log(
    Math.floor(Date.now() / 1000),
    new Date().toLocaleString(),
    "schedule.scheduleJob"
  );
});
